package com.jcfk.system.dao;

import com.jcfk.common.business.dao.BaseDao;
import com.jcfk.common.web.domain.DataPage;
import com.jcfk.system.domain.dto.SysFrequentMenuDTO;
import com.jcfk.system.domain.po.SysFrequentMenu;
import com.jcfk.system.domain.query.SysFrequentMenuQuery;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 常用菜单表
 *
 * @author yrl
 * @email 
 * @date 2025-06-03
 */
@Repository
public interface SysFrequentMenuDao extends BaseDao<SysFrequentMenu> {
    /**
     * 常用菜单表分页查询
     *
     * @param page
     * @param query
     * @return
     */
    DataPage<SysFrequentMenuDTO> queryByPage(@Param("page") DataPage<SysFrequentMenuDTO> page, @Param("query") SysFrequentMenuQuery query);

    List<SysFrequentMenuDTO> getListByUserId(@Param("userId") String userId,
                                             @Param("permissionType") String permissionType);

    List<SysFrequentMenuDTO> getListByAdmin(@Param("userId") String userId,
                                            @Param("permissionType") String permissionType);
}
